//
//  ZLPersonalCenterCell.m
//  ZLExamination
//
//  Created by Zheng on 2017/8/10.
//  Copyright © 2017年 Zheng. All rights reserved.
//

#import "ZLPersonalCenterCell.h"

@interface ZLPersonalCenterCell ()

@end

@implementation ZLPersonalCenterCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        
        self.accessoryType = UITableViewCellAccessoryDisclosureIndicator;;
        self.selectionStyle = UITableViewCellSelectionStyleNone;
        
        [self.contentView addSubview:self.iconImgv];
        [self.contentView addSubview:self.contentLbl];
        
        [_iconImgv mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.mas_equalTo(20);
            make.centerY.equalTo(self);
            make.width.height.mas_equalTo(20);
        }];
        
        [_contentLbl mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.equalTo(_iconImgv.mas_right).offset(12);
            make.centerY.equalTo(self);
            make.right.mas_equalTo(-10);
        }];
    }
    return self;
}

- (UIImageView *)iconImgv {
    if (!_iconImgv) {
        _iconImgv = [[UIImageView alloc] init];
    }
    return _iconImgv;
}

- (UILabel *)contentLbl {
    if (!_contentLbl) {
        _contentLbl = [[UILabel alloc] init];
        _contentLbl.font = kCX_FONT(15);
    }
    return _contentLbl;
}

@end
